perm filename DCO.FRM[P,JRA] blob
sn#473022 filedate 1979-10-03 generic text, type C, neo UTF8
COMMENT ā VALID 00001 PAGES
C REC PAGE DESCRIPTION
C00001 00001
C00002 ENDMK
Cā;
ā13-Sep-79 1543 DCO Yapp - Yet Another Pretty Printer
To: "@LISP.DIS[LSP,DCO]" at SU-AI
I have written a general purpose pretty printer. Primitives are
provided for pretty printing; the primitives are driven by an unparser
which you must write yourself. The pretty printer is suitable for pretty
printing programs (Lisp, Pascal, whatever), formulas, etc. It does not
wait for the entire expression or program to be input, but begins printing
as soon as it has received a linefull of text. It requires time linear in
the length of the input and space linear in the linewidth of the output
device.
The lisp version of the algorithm is PP.FAS[LSP,DCO]. Documentation
is only available in hardcopy; send me a note if you want documentation.